package com.we823.project.repository.dao.we;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import com.we823.project.model.we.RoleResourcePermissionModel;

@Repository("roleResourcePermissionRepository")
public interface RoleResourcePermissionRepository extends JpaRepository<RoleResourcePermissionModel, Integer> {
	List<RoleResourcePermissionModel> findByRoleid(int roleid);
	List<RoleResourcePermissionModel> findByResourceidIn(List<Integer> resourceIds);
	List<RoleResourcePermissionModel> findByRoleidIn(List<Integer> roleIdList);
}
